﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using BotDetect.Web.UI.Mvc;


namespace MvcGMaps.Utils
{
    public static class CaptchaHelper
    {
        public static MvcCaptcha GetMarkerCaptcha()
        {
            // create the control instance
            MvcCaptcha markerCaptcha = new MvcCaptcha("MarkerCaptcha");

            // set up client-side processing of the Captcha code input textbox
            markerCaptcha.UserInputClientID = "CaptchaCode";

            // Captcha settings
            markerCaptcha.ImageSize = new System.Drawing.Size(196, 40);
            markerCaptcha.CodeLength = 4;
            markerCaptcha.ImageFormat = BotDetect.ImageFormat.Gif;
            markerCaptcha.IconsDivWidth = 16;

            return markerCaptcha;
        }
    }

}